<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<div class="container">
    <h1>Nuevo Usuario</h1><br/><br/>
    <form:form action="new" method="post" commandName="usuario" cssClass="form-horizontal">
        <div class="row">
            
         
            <div class="control-group">
                <label>Nombre:*</label>
                <div class="controls">
                    <form:input path="nombre"></form:input>
                    <form:errors path="nombre" cssstyle="color:red"></form:errors>
                </div>
 
            </div>
                
                
                
          <div class="control-group">
                <label>Email:*</label>
                <div class="controls">
                    <form:input path="email"></form:input><label></label>
                    <form:errors path="email" cssstyle="color:red"></form:errors>
                </div>
            </div> 
                         
                
                
                
            <div class="control-group">
                <label>Password*</label>
                <div class="controls">
                    <form:input path="contrasenia"></form:input><label></label>
                    <form:errors path="contrasenia" cssstyle="color:red"></form:errors>
                </div>
            </div> 
                
                                
                

            <div class="control-group">
                <label>Apellido Paterno:*</label>
                <div class="controls">
                    <form:input path="apellidopaterno"></form:input>
                    <form:errors path="apellidopaterno" cssstyle="color:red"></form:errors>
                </div>
            </div>                
                
        <div class="control-group">
                <label>Apellido Materno:*</label>
                <div class="controls">
                    <form:input path="apellidomaterno"></form:input>
                    <form:errors path="apellidomaterno" cssstyle="color:red"></form:errors>
                </div>
            </div> 
                
               
                  
                
 
             <div class="control-group">
                <label>Tipo Usuario:*</label>
                <div class="controls">
                    <form:input path="tipousuario"></form:input>
                    <form:errors path="tipousuario" cssstyle="color:red"></form:errors>
                </div>
            </div>                
                
                
                
                
                


                
        <div class="actions" style="margin-left: 160px;">
            <input name="" value="Save" type="submit" class="btn btn-primary">
            <a style="margin-left: 5px;" class="btn" href="<c:url value='/pages/usuarios/index'/>">Cancelar</a>
        </div>                
    </form:form>
</div>
